package chapter5.additional;

enum Season {
    SPRING("春天"),
    SUMMER("夏天"),
    AUTUMN("秋天"),
    WINTER("冬天");

    private String chineseName;

    Season(String name) { this.chineseName = name; }
    public String getName() { return chineseName; }
}

// 精简的测试类
public class EnumWithName {
    public static void main(String[] args) {
        Season now = Season.SUMMER;

        System.out.println("当前季节: " + now.getName());

        System.out.println("\n所有季节:");
        for (Season s : Season.values()) {
            System.out.println(s + ": " + s.getName());
        }
    }
}